﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Repository;
using SimCMS.Model;

namespace SimCMS.Manager
{
    public class SimadminroleManager : ISimadminroleManager
    {
        public IRepository<Simadminrole> SimadminroleRepository { get; set; }

        public object Save(Simadminrole entity)
        {
            return this.SimadminroleRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimadminroleRepository.Delete(this.Get(id));
        }

        public Simadminrole Get(object id)
        {
            return this.SimadminroleRepository.Get(id);
        }

        public IList<Simadminrole> LoadAll()
        {
            return this.SimadminroleRepository.LoadAll();
        }

        public void Update(Simadminrole entity)
        {
            this.SimadminroleRepository.Update(entity);
        }
    }
}
